$OpenBSD: patch-DSA_xs,v 1.4 2017/03/28 11:02:47 benoit Exp $
--- DSA.xs.orig	Fri Jan 13 09:14:53 2017
+++ DSA.xs	Tue Mar 28 12:56:46 2017
@@ -19,7 +19,7 @@ extern "C" {
 }
 #endif
 
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
 static void DSA_get0_pqg(const DSA *d,
                   const BIGNUM **p, const BIGNUM **q, const BIGNUM **g)
 {
